home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 015a / tsbat30.zip / show.bat < prev    next >
DOS Batch File  |  1990-10-21  |  878b  |  38 lines

  1. echo off
  2. echo.
  3. echo ┌───────────────────────────────────────────────────┐
  4. echo │ Type files allowing wildcards                     │
  5. echo │ By Prof. Timo Salmi, ts@chyde.uwasa.fi, 21-Oct-90 │
  6. echo └───────────────────────────────────────────────────┘
  7. echo.
  8.  
  9. rem If no parameters then give the instructions
  10. if "%1"=="" goto _help
  11.  
  12. rem Type the files
  13. :_loop
  14. if not exist %1 goto _err
  15. for %%f in (%1) do %comspec% /e:1024 /c show1 %%f
  16. shift
  17. if not "%1"=="" goto _loop
  18. goto _out
  19.  
  20. rem Warn if file not found, then try the next
  21. :_err
  22. echo File(s) %1 not found
  23. shift
  24. if not "%1"=="" goto _loop
  25. goto _out
  26.  
  27. rem The instructions "(if everything else fails, then rtfm :-)"
  28. :_help
  29. echo Usage: SHOW [FirstFile] [SecondFile] [...]
  30. echo.
  31. echo Examples: SHOW c:\*.bat
  32. echo           SHOW tsbat.inf *.pas
  33. echo.
  34.  
  35. rem That was the whole shebang
  36. :_out
  37. echo on
  38.